﻿using LtMbs;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UnitTesting.Web;
using System.Data;

namespace HelpdeskPluginTestLibary
{
    
    
    /// <summary>
    ///This is a test class for CombinedSearchTest and is intended
    ///to contain all CombinedSearchTest Unit Tests
    ///</summary>
    [TestClass()]
    public class CombinedSearchTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for SetSearchTypeFromSearchParameters
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void SetSearchTypeFromSearchParametersTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            string searchParameter = string.Empty; // TODO: Initialize to an appropriate value
            target.SetSearchTypeFromSearchParameters(searchParameter);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for SearchResults
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void SearchResultsTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            DataTable expected = null; // TODO: Initialize to an appropriate value
            DataTable actual;
            actual = target.SearchResults();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for SearchKms
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void SearchKmsTest()
        {
            // Private Accessor for SearchKms is not found. Please rebuild the containing project or run the Publicize.exe manually.
            Assert.Inconclusive("Private Accessor for SearchKms is not found. Please rebuild the containing projec" +
                    "t or run the Publicize.exe manually.");
        }

        /// <summary>
        ///A test for SearchCrm
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void SearchCrmTest()
        {
            // Private Accessor for SearchCrm is not found. Please rebuild the containing project or run the Publicize.exe manually.
            Assert.Inconclusive("Private Accessor for SearchCrm is not found. Please rebuild the containing projec" +
                    "t or run the Publicize.exe manually.");
        }

        /// <summary>
        ///A test for Search
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void SearchTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            string searchParameter = string.Empty; // TODO: Initialize to an appropriate value
            DataTable expected = null; // TODO: Initialize to an appropriate value
            DataTable actual;
            actual = target.Search(searchParameter);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for FetchParameters
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void FetchParametersTest()
        {
            // Private Accessor for FetchParameters is not found. Please rebuild the containing project or run the Publicize.exe manually.
            Assert.Inconclusive("Private Accessor for FetchParameters is not found. Please rebuild the containing " +
                    "project or run the Publicize.exe manually.");
        }

        /// <summary>
        ///A test for Dispose
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void DisposeTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            bool disposing = false; // TODO: Initialize to an appropriate value
            target.Dispose(disposing);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for CreateSearchResultsRow
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CreateSearchResultsRowTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            DataRow sourceSystemDataRow = null; // TODO: Initialize to an appropriate value
            DataRow expected = null; // TODO: Initialize to an appropriate value
            DataRow actual;
            actual = target.CreateSearchResultsRow(sourceSystemDataRow);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for convertSearchStringToFields
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void convertSearchStringToFieldsTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            string searchParameterToConvert = string.Empty; // TODO: Initialize to an appropriate value
            target.convertSearchStringToFields(searchParameterToConvert);
            Assert.Inconclusive("A method that does not return a value cannot be verified.");
        }

        /// <summary>
        ///A test for ConvertIntoDataTable
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void ConvertIntoDataTableTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor(); // TODO: Initialize to an appropriate value
            string CrmFetchResultsString = string.Empty; // TODO: Initialize to an appropriate value
            DataTable expected = null; // TODO: Initialize to an appropriate value
            DataTable actual;
            actual = target.ConvertIntoDataTable(CrmFetchResultsString);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }

        /// <summary>
        ///A test for CombinedSearch Constructor
        ///</summary>
        [TestMethod()]
        [HostType("ASP.NET")]
        [AspNetDevelopmentServerHost("C:\\Users\\Rihan\\Documents\\Visual Studio 2008\\Projects\\Kalahari\\WrapperSearchService", "/WrapperSearchService")]
        [UrlToTest("http://localhost/WrapperSearchService")]
        public void CombinedSearchConstructorTest()
        {
            CombinedSearch_Accessor target = new CombinedSearch_Accessor();
            Assert.Inconclusive("TODO: Implement code to verify target");
        }
    }
}
